package user

import (
	"time"
	"yanwc.gokit/user_svc/common"
	"yanwc.gokit/user_svc/models"
)

//用户查询
type QueryService interface {
	GetByUserId(userId int) *models.User

	//GetAllByName 查询所有用户
	GetAllByName(name *string,
		beginCreatedAt *time.Time,
		endCreatedAt *time.Time,
		disable *bool,
		freezing *bool,
		page common.Page) (rows *[]models.User, total int)
}
